package online.xuping.center.io;

import io.minio.BucketExistsArgs;
import io.minio.MakeBucketArgs;
import io.minio.MinioClient;
import io.minio.UploadObjectArgs;
import io.minio.errors.MinioException;
import online.xuping.common.MinioUtil;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public class FileUploader {
  public static void main(String[] args) {

    MinioUtil minioUtil = new MinioUtil("http://127.0.0.1:9000",
            "R6Xv5PJtNpk2FAKU8eG0", "ZFfVzw8Smv44o22Nk0xLOI47y0tOEYKtVDqYD1tG","zuaa1");

    minioUtil.save("/Users/pingxu/temp/asiaphotos.zip", "asiaphotos-2015.zip");

  }
}
